package com.lmaye.design.patterns.ood.ocp.example;

/**
 * -- Draw Graph
 *
 * @author lmay.Zhou
 * @date 2020/11/12 21:24 星期四
 * @qq 379839355
 * @email lmay@lmaye.com
 * @since JDK1.8
 */
public class DrawGraph {
    public void drawShape(ShapeEnum shapeEnum) {
        switch (shapeEnum) {
            case RECTANGLE:
                new Rectangle().draw();
                break;
            case CIRCLE:
                new Circle().draw();
                break;
            default:
                System.out.println("画不出来...");
                break;
        }
    }
}
